import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

Vue.directive("fofo", {
  inserted(el){
    el.focus()
  }
})

Vue.directive("color", {
  inserted(el, binding){ // 插入时触发此函数
    el.style.color = binding.value;
  },
  update(el, binding){ // 更新时触发此函数
    el.style.color = binding.value;
  }
})

new Vue({
  render: h => h(App),
}).$mount('#app')
